<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <!--179000612陈攀文-->
    <link rel="stylesheet" type="text/css" href="../css/tabdemo.css"/>
    <script src="../js/jquery-3.1.1.min.js"></script>
    <script>
        $(function () {
            $("li").click(function () {
                $("li").eq($(this).index()).addClass("on").siblings().removeClass('on');
                $("ul").eq($(this).index()+1).css("display","").siblings().css("display","none");
            })
        })
    </script>
</head>
<body>
<div class="tabox">
    <div class="hd">
        <ul>
            <li class="on">疯狂抢购</li>
            <li class=" ">猜您喜欢</li>
            <li class=" ">热卖商品</li>
            <li class=" ">热评商品</li>
            <li class=" ">新品上架</li></ul>
    </div>
    <div class="bd">
        <ul class="lh">
            <img src="../image/p1.jpg" >
        </ul>
        <ul class="lh" style="display: none;">
            <img src="../image/p2.jpg" >
        </ul>
        <ul class="lh" style="display: none;">
            <img src="../image/p3.jpg" >
        </ul>
        <ul class="lh" style="display: none;">
            <img src="../image/p4.jpg" >
        </ul>
        <ul class="lh" style="display: none;">
            <img src="../image/p5.jpg" >
        </ul>
    </div>
</div>
</body>
</html>
